<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        Array.prototype.myforEach=function(fn){
            for(let i=0;i<this.length;i++){
                fn.call(this,this[i],i,this)
            }
        }

        Array.prototype.mymap=function(fn){
                    let newarr=[]
                    for(let i=0;i<this.length;i++){
                        newarr.push(fn.call(this,this[i],i,this)) 
                    }
                    return newarr
                }
        Array.prototype.mysome=function(fn){
                    for(let i=0;i<this.length;i++){
                        if(fn.call(this,this[i],i,this)) return true
                    }
                    return false
        }
        Array.prototype.myevery=(fn)=>{
                    for(let i=0;i<this.length;i++){
                        if(!fn.call(this,this[i],i,this)) return false
                    }
                    return true
                }

        const arr=[12,35,67,23,45]
        const c=arr.myevery((item)=>item>9)
        console.log(c)
        

    </script>
</body>
</html>